#!/usr/bin/env node 
import http from 'http';
import chalk from 'chalk';
http.createServer((req,res)=>{
  const str=`HTTP请求起始行：${req.method},请求路径为${req.url},HTTP版本为${req.httpVersion}';
  console.log(chalk.greenBright(str));
}).listen(8080);
